<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    * {
      box-sizing: border-box;
      padding: 0;
      margin: 0;
    }

    .box1 {
      width: 250px;
      height: 500px;
      border: 1px solid #000;
      margin: 100px 300px;
      padding: 25px;
      overflow: hidden;
    }

    .box2 {
      width: 200px;
      height: 100px;
      border-radius: 5px;
      border: 1px solid #000;
      background-color: aqua ;
      transform-style: preserve-3d;
      animation: mymove 1.5s;
      perspective: 1px;
    }

    @keyframes mymove {
      0% {
        transform: translateX(200px);
      }
      80% {
        transform: translateX(20px);
        transform: skew(15deg);
      }
      90% {
        transform: skew(-15deg);
      }
      100% {
        transform: translateX(00px);
        transform: skew(0deg);
      }
    }
  </style>
</head>

<body>
  <div class="box1">
    <div class="box2"></div>
  </div>
</body>

</html>